﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.ServiceProject;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IServiceProjectService
    {
        /// <summary>
        /// 获取单个服务项目
        /// </summary>
        /// <param name="id">服务项目ID</param>
        /// <returns></returns>
        ServiceProject LoadByID(int id);
        /// <summary>
        /// 判断是否存在
        /// </summary>
        /// <param name="productName">服务项目名称</param>
        /// <param name="id">需要排除的服务项目ID</param>
        /// <returns></returns>
        bool IsExist(string projectName, int id=0);
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="model">过滤条件</param>
        /// <param name="total">返回总条数</param>
        /// <returns></returns>
        IQueryable<ServiceProject> GetPagingList(ServiceProjectModel model, out int total);
        IQueryable<ServiceProject> GetServiceProjectListByInsuranceOrderid(int insuranceOrderid);
        /// <summary>
        /// 获取服务项目名称
        /// </summary>
        /// <param name="serviceProjectId">服务项目ID</param>
        /// <returns></returns>
       string GetProjectName(int serviceProjectId);
    }
}
